﻿<div id="welcome">
    @if (Request.IsAuthenticated)
    {
        <ul class="nav navbar-nav navbar-right">
            <li>
                <a href="javascript:void(0)">Hello,<strong> @User.Identity.Name</strong></a>
            </li>
            <li>@Html.ActionLink("Sign Out", "Logout", "Home")</li>
        </ul>
        
            if(HttpContext.Current.Request.Cookies["_accid"] != null && HttpContext.Current.Request.Cookies["_perid"] != null){
                <span id="_accid" style="display:none">
                    @HttpContext.Current.Request.Cookies["_accid"].Value
                </span>
                <span id="_perid" style="display:none">
                    @HttpContext.Current.Request.Cookies["_perid"].Value
                </span>
                <span id="_role" style="display:none">
                    @HttpContext.Current.Request.Cookies["_role"].Value
                </span>
            }

        
    }
    else
    {
        <ul class="nav navbar-nav navbar-right">
            <li>@Html.ActionLink("Register", "Register", "Home")</li>
            <li>@Html.ActionLink("Login", "Login", "Home")</li>
        </ul>
    }

</div>
